package com.amor.util

import android.app.Activity
import com.gyf.immersionbar.ImmersionBar

object StatusBarUtil {
    fun getStatusBarHeight(activity: Activity): Int {
        val safeTop: Int = ImmersionBar.getNotchHeight(activity)
        var height = ImmersionBar.getStatusBarHeight(activity)
        if (height < safeTop) {
            height = safeTop
        }
        return height
    }
}